package cn.com.api.service.impl.base;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.U_article;

import cn.com.api.mapper.U_articleMapper;

import cn.com.api.service.U_articleService;

/**
 * 
 **/
@Service
public class U_articleServiceImplBase {
	@Autowired
	private U_articleMapper U_articleMapper;
    
    // 根据id获取
	public U_article findU_articleById(Integer id){
		U_article u_article = U_articleMapper.findU_articleById( id );
		return u_article;
	}
    
    //查看数据集
	public List<U_article> findU_articles(){
        List<U_article> u_articles = U_articleMapper.findU_articles();
		return u_articles;
    }
    
	// 添加
	public int insertU_article(U_article u_article){
		int ret_I= U_articleMapper.insertU_article(u_article);
		return ret_I;
	}

	// 修改
	public int updateU_article(U_article u_article){
		int ret_I= U_articleMapper.updateU_article(u_article);
		return ret_I;
	}
	
    // 删除
	public int deleteU_article(Integer id){
		int ret_I= U_articleMapper.deleteU_article( id );
		return ret_I;
	}
	
    // Foreign keys revelant		
		

	//region Indexs revelant
    
    
 
}


